/*!
 * CodeGenerator(https://git.oschina.net/ptma/CodeGenerator)
 *
 * Date: 2017-11-02 11:30:44
 */
package com.azier.mysql.model;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Table: monitoring_stats_data_day - 测点日统计数据 <br/>
 *
 * @author 金建强(ptma@163.com)
 * @version 2017-11-02 11:30:44
 */
@Getter
@Setter
@Entity
@Table(name = "monitoring_stats_data_day")
public class MonitoringStatsDataDay implements Serializable {

    /** Column: stats_id - 主键 */
    @Id
    @Column(name = "stats_id")
    private Long statsId;

    /** Column: device_id - 终端编号 */
    private String deviceId;

    /** Column: monitoring_id - 测点编号 */
    private Long monitoringId;

    /** Column: sm_id - 设施测点映射ID */
    private Long smId;

    /** Column: index_id - 指标ID */
    private Long indexId;

    /** Column: data_value - 统计值 */
    private Double dataValue;

    /** 统计最小（期初）值 */
    private Double minData;

    /** 统计最大（期末）值 */
    private Double maxData;

    /** 变化次数 */
    private Integer changeNumber;

    /** Column: data_time - 时间 */
    private Date dataTime;

    @Override
    public String toString() {
        return "MonitoringStatsDataDay{" +
                "statsId=" + statsId +
                ", deviceId='" + deviceId + '\'' +
                ", monitoringId=" + monitoringId +
                ", smId=" + smId +
                ", indexId=" + indexId +
                ", dataValue=" + dataValue +
                ", minData=" + minData +
                ", maxData=" + maxData +
                ", changeNumber=" + changeNumber +
                ", dataTime=" + dataTime +
                '}';
    }
}
